<template>
    <router-view/>
</template>
<script>
    import User from '~/utils/oauth'
    import SidebarMenu from "~/views/layout/SidebarMenu";

    export default {
        name: 'app',
        components: {SidebarMenu},
        data: function () {
            return {
                user: User.user,
                menus: [{
                    id: 'a1111',
                    name: 2,
                    children: [{
                        id: 'a1121',
                        name: 444,
                        children: [{
                            id: 'a1311',
                            name: 555
                        }]
                    }]
                }, {
                    id: 'a1111',
                    name: 2,
                    children: [{
                        id: 'a1121',
                        name: 444,
                        children: [{
                            id: 'a1311',
                            name: 555
                        }]
                    }]
                }, {
                    id: 'a1111',
                    name: 2,
                    children: [{
                        id: 'a1121',
                        name: 444,
                        children: [{
                            id: 'a1311',
                            name: 555
                        }]
                    }]
                }, {
                    id: 'a1111',
                    name: 2,
                    children: [{
                        id: 'a1121',
                        name: 444,
                        children: [{
                            id: 'a1311',
                            name: 555
                        }]
                    }]
                }, {
                    id: 'a1111',
                    name: 2,
                    children: [{
                        id: 'a1121',
                        name: 444,
                        children: [{
                            id: 'a1311',
                            name: 555
                        }]
                    }]
                }]
            };
        },
        methods: {
            handleOpen(key, keyPath) {
                console.log(User.user);

            },
            handleClose(key, keyPath) {
                console.log(key, keyPath);
            }
        },
    }
</script>